package org.mzx.shortLink.starter.base.config;

import org.mzx.shortLink.starter.base.ApplicationContextHolder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
/**
 * @author mazhenxi
 * @date 2025/4/23
 */
public class baseConfig {

    @Bean
    @ConditionalOnMissingBean
    //这个注解
    public ApplicationContextHolder setApplicationContextHolder() {
        return new ApplicationContextHolder();
    };
}
